<template>
  <div class="dianpuList">
    <div class="dianpu_left">
      <img src="url+datas.image_path"
           alt="">
    </div>
    <ul class="dianpu_center">
      <li class="center_top">
        <span class="center_top1">品牌</span>
        <span class="center_top2">{{datas.name}}</span>
      </li>
    
  
      
        <li class="center_center">
        <span class="center_center1"> <span> <van-rate v-model="value"
                  :size="10"
                  color="#ffd21e"
                  void-icon="star"
                  void-color="#eee" /></span>月销111111</span>
       
      </li>
      <li class="center_button">
        <span class="center_button1">￥{{datas.float_minimum_order_amount}}起送/配送费约￥{{datas.float_delivery_fee}}</span>
      </li>
    </ul>
    <ul class="dianpu_right">
      <li class="right_top">
        <span class="right_top1">保</span>
        <span class="right_top1">准</span>
        <span class="right_top1">快</span>
      </li>
      <li class="right_center">
        <span class="right_center1">蜂鸟专送</span>
        <span class="right_center2">准时达</span>
      </li>
      <li class="right_buttton">
        <span class="right_buttton1">{{datas.distance}}/</span>
        <span class="right_buttton2">15小时28分钟</span>
      </li>
    </ul>
  </div>
</template>

<script>
import Vue from 'vue';
import { Rate } from 'vant';

Vue.use(Rate);
export default {
  name: 'ShopList',
   props: {
    datas:{
      type:Object,
      required: true
    }
  },
  data () {
    return {
      value: 3,
       url:"https://elm.cangdu.org/img/"
    };
  },
 
}
</script>

<style lang="less">
.dianpuList {
  width: 100%;
  background-color: white;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding-bottom: 10px;
  border-bottom:1px solid black;
  .dianpu_left {
    width: 25%;
    img {
      width: 90%;
    }
  }
  .dianpu_center {
    width: 40%;
    text-align: left;
    .center_top {
      margin: 8px 0;
      .center_top1 {
        display: inline-block;
        font-size: 12px;
        line-height: 15px;
        color: #333;
        background-color: #ffd930;
        padding: 0 5px;
        border-radius: 3px;
        margin-right: 3px;
      }
      .center_top2 {
        color: #333;
        font-size: 15px;
        font-weight: bold;
      }
    }
    .center_center {
      margin: 8px 0;
      .center_center1 {
        font-size: 10px;
        color: #666;
      }
    }
    .center_button {
      margin: 8px 0;
      .center_button1 {
        font-size: 12px;
        color: #666;
      }
    }
  }
  .dianpu_right {
    width: 40%;
    text-align: right;
    .right_top {
      margin: 8px 0;
      .right_top1 {
        font-size: 8px;
        color: #999;
        border: 0.2px solid #999;
        padding: 0 2px;
        margin-right: 2px;
      }
    }
    .right_center {
      margin: 8px 0;
      .right_center1 {
        font-size: 8px;
        background-color: #3190e8;
        border: 0.3px solid #3190e8;
        color: white;
      }
      .right_center2 {
        font-size: 8px;
        border: 0.3px solid #3190e8;
        color: #3190e8;
      }
    }
    .right_buttton {
      margin: 8px 0;
      .right_buttton1 {
        font-size: 8px;
        color: #999;
      }
      .right_buttton2 {
        font-size: 8px;
        color: #3190e8;
      }
    }
  }
}
</style>